/**
 * Generate time : 2011-06-27 5:55:00
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCCExamineCondition
 * 
 */
public class ZMCCExamineCondition extends DaoEPBase {

	private String fdKeyId = " "; /* 主键 */
	private String fdOrgId = " "; /* 组织机构ID */
	private String fdDepartmentId = " "; /* 工程ID */
	private String fdYear = " "; /* 年份 */
	private String fdMonth = " "; /* 月份 */
	private String fdLaborageresult = " "; /* 工资结果 */
	private String fdPledgeresult = " "; /* 抵押结果 */
	private Float fdTrainingStarttime = new Float(0); /* 最终得分 */
	private String fdRemark = " "; /* 备注 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("主键");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdOrgId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("组织机构ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDepartmentId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("工程ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdYear");
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("年份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdMonth");
		eiColumn.setFieldLength(2);
		eiColumn.setDescName("月份");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdLaborageresult");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("工资结果");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdPledgeresult");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("抵押结果");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTrainingStarttime");
		eiColumn.setType("N");
		eiColumn.setScaleLength(1);
		eiColumn.setFieldLength(4);
		eiColumn.setDescName("最终得分");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemark");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCCExamineCondition() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - 主键
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdOrgId - 组织机构ID
	 * 
	 * @return the fdOrgId
	 */
	public String getFdOrgId() {
		return this.fdOrgId;
	}

	/**
	 * set the fdOrgId - 组织机构ID
	 */
	public void setFdOrgId(String fdOrgId) {
		this.fdOrgId = fdOrgId;
	}

	/**
	 * get the fdDepartmentId - 工程ID
	 * 
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}

	/**
	 * set the fdDepartmentId - 工程ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}

	/**
	 * get the fdYear - 年份
	 * 
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}

	/**
	 * set the fdYear - 年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}

	/**
	 * get the fdMonth - 月份
	 * 
	 * @return the fdMonth
	 */
	public String getFdMonth() {
		return this.fdMonth;
	}

	/**
	 * set the fdMonth - 月份
	 */
	public void setFdMonth(String fdMonth) {
		this.fdMonth = fdMonth;
	}

	/**
	 * get the fdLaborageresult - 工资结果
	 * 
	 * @return the fdLaborageresult
	 */
	public String getFdLaborageresult() {
		return this.fdLaborageresult;
	}

	/**
	 * set the fdLaborageresult - 工资结果
	 */
	public void setFdLaborageresult(String fdLaborageresult) {
		this.fdLaborageresult = fdLaborageresult;
	}

	/**
	 * get the fdPledgeresult - 抵押结果
	 * 
	 * @return the fdPledgeresult
	 */
	public String getFdPledgeresult() {
		return this.fdPledgeresult;
	}

	/**
	 * set the fdPledgeresult - 抵押结果
	 */
	public void setFdPledgeresult(String fdPledgeresult) {
		this.fdPledgeresult = fdPledgeresult;
	}

	/**
	 * get the fdTrainingStarttime - 最终得分
	 * 
	 * @return the fdTrainingStarttime
	 */
	public Float getFdTrainingStarttime() {
		return this.fdTrainingStarttime;
	}

	/**
	 * set the fdTrainingStarttime - 最终得分
	 */
	public void setFdTrainingStarttime(Float fdTrainingStarttime) {
		this.fdTrainingStarttime = fdTrainingStarttime;
	}

	/**
	 * get the fdRemark - 备注
	 * 
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}

	/**
	 * set the fdRemark - 备注
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdOrgId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdOrgId")), fdOrgId));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMonth(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMonth")), fdMonth));
		setFdLaborageresult(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdLaborageresult")), fdLaborageresult));
		setFdPledgeresult(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPledgeresult")), fdPledgeresult));
		setFdTrainingStarttime(NumberUtils.toFloat(StringUtils.toString(map.get("fdTrainingStarttime")), fdTrainingStarttime));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdOrgId", StringUtils.toString(fdOrgId, eiMetadata.getMeta("fdOrgId")));
		map.put("fdDepartmentId", StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));
		map.put("fdYear", StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));
		map.put("fdMonth", StringUtils.toString(fdMonth, eiMetadata.getMeta("fdMonth")));
		map.put("fdLaborageresult", StringUtils.toString(fdLaborageresult, eiMetadata.getMeta("fdLaborageresult")));
		map.put("fdPledgeresult", StringUtils.toString(fdPledgeresult, eiMetadata.getMeta("fdPledgeresult")));
		map.put("fdTrainingStarttime", StringUtils.toString(fdTrainingStarttime, eiMetadata.getMeta("fdTrainingStarttime")));
		map.put("fdRemark", StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));

		return map;

	}
}